﻿using System;
using System.Collections.Generic;
 
using System.Text;
using System.Collections;
namespace Ession
{
    public class SomeVariable
    {
        public static string[] AnotherVisitPurpose = new string[] { @"1.20202 ", @"2.3636" };
        public static string[] faceToface = new string[] { @"1.%E5%8F%AF", @"2.%E5%90%A6" };


        public static string[] initiative = new string[] { @"1.%E8%83%BD%E5%8B%95", @"2.%E5%8F%97%E5%8B%95" };

        public static string[] Talker = new string[] { 
        @"1.%E6%9C%AC%E4%BA%BA",
        @"2.%E9%85%8D%E5%81%B6%E8%80%85",
        @"3.%E7%B4%B9%E4%BB%8B%E4%BA%BA", @"4.%E5%85%B1%E5%90%8C%E5%87%BA%E8%B3%87%E8%80%85",
         @"5.%E3%82%AA%E3%83%9A%E3%83%AC%E3%83%BC%E3%82%BF%E3%83%BC",
          @"6.%E8%A6%AA%E6%88%9A",
           @"7.%E8%B3%BC%E8%B2%B7%E6%8B%85%E5%BD%93%E8%80%85", @"8.%E5%8F%8B%E4%BA%BA%E3%83%BB%E7%9F%A5%E4%BA%BA",
            @"9.%E9%87%8D%E6%A9%9F%E6%8B%85%E5%BD%93%E8%80%85",
             @"10.%E3%81%9D%E3%81%AE%E4%BB%96",
        };


        public static string[] Traffic = new string[]{
@"1.%E8%BB%8A",
@"2.%E5%90%8C%E4%B9%97",
@"3.%E3%83%90%E3%82%B9",
@"4.%E3%82%BF%E3%82%AF%E3%82%B7%E3%83%BC",
@"5.%E5%BE%92%E6%AD%A9",
@"6.%E3%81%9D%E3%81%AE%E4%BB%96"};
        public static string[] VisitMethod = new string[]{@"1.%E4%BA%8B%E5%8B%99%E6%89%80%E3%83%BB%E8%87%AA%E5%AE%85%E8%A8%AA%E5%95%8F", 
        @"2.%E7%8F%BE%E5%A0%B4%E8%A8%AA%E5%95%8F",@"3.%E9%9B%BB%E8%A9%B1",
        @"4.%E9%A1%A7%E5%AE%A2%E6%9D%A5%E7%A4%BE",
        @"5.%E5%B1%95%E7%A4%BA%E4%BC%9A",
        @"6.%E9%A3%9F%E4%BA%8B",
        @"7.%E3%81%9D%E3%81%AE%E4%BB%96"

        };

        public static string[] VisitPurpose = new string[] { 
        @"1.%E5%88%9D%E5%9B%9E%E3%82%B3%E3%83%B3%E3%82%BF%E3%82%AF%E3%83%88",
        @"2.%E6%83%85%E5%A0%B1%E5%8F%8E%E9%9B%86",
 @"3.%E9%96%A2%E5%BF%83%E4%BA%8B%E6%8A%8A%E6%8F%A1",
  @"4.%E8%A7%A3%E6%B1%BA%E3%83%BB%E6%8F%90%E6%A1%88",
   @"5.%E5%BC%95%E5%90%88%E3%83%BB%E5%95%86%E8%AB%87",
    @"6.%E7%B4%8D%E8%BB%8A",
     @"7.%E5%9B%9E%E5%8F%8E",
      @"8.%E3%82%A2%E3%83%95%E3%82%BF%E3%83%BC%E3%83%95%E3%82%A9%E3%83%AD%E3%83%BC%E3%83%BB%E3%82%B5%E3%83%BC%E3%83%93%E3%82%B9",
       @"9.%E3%83%A1%E3%83%B3%E3%83%86%E3%83%8A%E3%83%B3%E3%82%B9",
        @"10.%E5%AE%9A%E6%9C%9F%E5%B7%A1%E5%9B%9E",
         @"11.%E7%89%B9%E5%AE%9A%E6%A4%9C%E6%9F%BB",
  @"12.%E4%BF%9D%E8%A8%BC%E6%9C%9F%E9%96%93%E5%86%85%E4%BF%AE%E7%90%86",
   @"13.%E4%BF%9D%E8%A8%BC%E6%9C%9F%E9%96%93%E5%A4%96%E4%BF%AE%E7%90%86",
    @"14.%E9%83%A8%E5%93%81%E8%B2%A9%E5%A3%B2",
     @"15.%E3%81%9D%E3%81%AE%E4%BB%96"
     
        };


    }

    public class HttpPostData
    {
        public readonly static string EVENTVALIDATION = @"__EVENTVALIDATION";
        public readonly static string ViewState = @"__VIEWSTATE";

        public HttpPostData(string[] RealData, string[] AddtionData)
        {
            for (int i = 0; i < RealData.Length; i += 2)
            {
                this.RealData.Add(RealData[i], System.Web.HttpUtility.UrlEncode(RealData[i + 1]));

            }

            for (int i = 0; i < AddtionData.Length; i += 2)
            {
                this.AddtionData.Add(AddtionData[i], System.Web.HttpUtility.UrlEncode(AddtionData[i + 1]));


            }
        }
        public Hashtable AddtionData = new Hashtable();

        public Hashtable RealData = new Hashtable();
        public override string ToString()
        {
            IDictionaryEnumerator it = RealData.GetEnumerator();

            StringBuilder sb = new StringBuilder();

            while (it.MoveNext())
            {
                sb.Append("&" + it.Key.ToString() + "=" + it.Value.ToString());

            }
            sb.Remove(0, 1);
            int j = sb.Length;
            it = AddtionData.GetEnumerator();

            while (it.MoveNext())
            {
                sb.Append("&" + it.Key.ToString() + "=" + it.Value.ToString());

            }




            return sb.ToString();

        }
    }
}
